* lisp/progmodes/ruby-mode.el
authorDmitry Gutov <dgutov@yandex.ru>
Wed, 14 Nov 2012 12:17:21 +0000 (16:17 +0400)
committerDmitry Gutov <dgutov@yandex.ru>
Wed, 14 Nov 2012 12:17:21 +0000 (16:17 +0400)
commit8589d312d3a5c4426e57b38b0d87faf3e036326a
tree80ce5fc9adedc2497c2336961521b809264b75e2
parent9ad2a2a9348373634ae4a1e0680cc4f5ef8842df
* lisp/progmodes/ruby-mode.el
(ruby-syntax-propertize-function): After everything else, search
for expansions in string literals, mark their insides as
whitespace syntax and save match data for font-lock.
(ruby-font-lock-keywords): Highlight just the 2nd group from
expression expansion matches.
(ruby-match-expression-expansion): Use the match data saved to the
text property in ruby-syntax-propertize-function.

* test/automated/ruby-mode-tests.el
Change direct font-lock face references to var references.
(ruby-interpolation-suppresses-syntax-inside): New test.
(ruby-interpolation-inside-percent-literal-with-paren): New
failing test.
lisp/ChangeLog
lisp/progmodes/ruby-mode.el
test/ChangeLog
test/automated/ruby-mode-tests.el